<div class="input">
    <div class="name"><i ng-show="must">*</i> {{label}}：</div>
    <div class="area">
        <!--普通输入框-->
        <input type="text" ng-readonly="readonly" ng-class="{'true': !isError && !isFirstIn}" name="{{name}}" ng-blur="validateRule()" placeholder="{{placeholder}}" ng-disabled="disabled" ng-if="!type || type == 'input'" ng-model="$parent.ngModel">
        <!--密码输入框-->
        <input type="password" ng-readonly="readonly" ng-class="{'true': !isError && !isFirstIn}" name="{{name}}" ng-blur="validateRule()" placeholder="{{placeholder}}" ng-disabled="disabled" ng-if="type == 'password'" ng-model="$parent.ngModel">
        <!--时间选择组件-->
        <input type="text" ng-readonly="readonly" ng-class="{'true': !isError && !isFirstIn}" name="{{name}}" wdate-picker ng-blur="validateRule()" placeholder="{{placeholder}}" ng-disabled="disabled" ng-if="type == 'time'" ng-model="$parent.ngModel">
        <!--下拉选项-->
        <select name="{{name}}" ng-readonly="readonly" ng-disabled="disabled || readonly" ng-change="validateRule()" placeholder="{{placeholder}}" ng-if="type == 'select'" ng-model="$parent.ngModel" ng-options="option.label for option in options track by option.value"></select>
        <!--多文本输入-->
        <textarea name="{{name}}" ng-readonly="readonly" ng-disabled="disabled" ng-blur="validateRule()" placeholder="{{placeholder}}" ng-if="type == 'textarea'" ng-model="$parent.ngModel"></textarea>
        <!--单位-->
        <span class="unit-text" ng-if="type == 'input-unit'">{{unit}}</span>
        <!--错误提示信息-->
        <span class="tip" ng-class="{'error': isError}" ng-show="tip || isError">
            <span ng-bind="tip" ng-show="!isError"></span>
            <span ng-bind="isError"></span>
        </span>
    </div>
    <div class="clear"></div>
</div>